﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace CommonLibrary.WorkFLow
{
    public abstract class ExecuteResult
    {
        public abstract void Execute(HttpContext context);
    }

    internal class ContinueResult : ExecuteResult
    {
        public override void Execute(HttpContext context)
        {
            // Nothing to do here.
        }
    }

    internal class RedirectResult : ExecuteResult
    {
        private string url;

        public RedirectResult(string url)
        {
            this.url = url;
        }

        public override void Execute(HttpContext context)
        {
            context.Response.Redirect(url);
        }
    }
}

